import request from "../utils/index"
const api = {
    //登录
    login:(data) => request("users/login",{method:"POST",data}),
    //添加账户
    AddAccount:(data) => request("users/addOrEditAccount",{method:"POST",data}),
    //获取所有账户列表
    getAccountsList:(data) => request("users/getAccountList",{method:"POST",data}),
    //删除账号
    delAccountById:(id) => request("users/delAccount?id="+id,{method:"delete"})
}
export default api